{% extends 'news/base.html'%}
{% block titleblock %}用户中心{% endblock %}
{% block scriptblock %}
         <script type="text/javascript" src="../../static/news/js/jquery.form.min.js"></script>
{% endblock %}
{% block menublock %}
<ul class="menu fl">
                {% for new_class in date.news_class %}

                    {% if loop.index == 1 %}
                     <li class="action" data-cid="{{ new_class.id }}"><a href="javascript:;">{{ new_class.name }}</a></li>
                    {% else %}
                    <li data-cid="{{ new_class.id }}"><a href="javascript:;">{{ new_class.name }}</a></li>
                    {% endif %}
                {% endfor %}
{#                <li class="active" data-cid="0"><a href="javascript:;">最新</a></li>#}
{#                <li data-cid="1"><a href="javascript:;">股市</a></li>#}
{#                <li data-cid="2"><a href="javascript:;">债市</a></li>#}
{#                <li data-cid="3"><a href="javascript:;">商品</a></li>#}
{#                <li data-cid="4"><a href="javascript:;">外汇</a></li>#}
{#                <li data-cid="5"><a href="javascript:;">公司</a></li>#}
            </ul>
{% endblock %}
{% block contentblock %}
    <div class="user_menu_con fl">
    {% if date.avatar_url %}
        <div class="user_center_pic">
				<img src="{{ date.avatar_url }}" alt="用户图片">
			</div>
    {% else %}
			<div class="user_center_pic">
				<img src="../../static/news/images/user_pic.png" alt="用户图片">
			</div>
    {% endif %}
			<div class="user_center_name">{{ date.user_id.nick_name }}</div>

			<ul class="option_list">
				<li class="active"><a href="{{ url_for('profile.base_info') }}" target="main_frame">基本资料</a></li>
				<li><a href="{{ url_for('profile.pic_info') }}" target="main_frame">头像设置</a></li>
				<li><a href="../../static/news/html/user_follow.html" target="main_frame">我的关注</a></li>
				<li><a href="{{ url_for('profile.pass_info') }}" target="main_frame">密码修改</a></li>
				<li><a href="{{ url_for('profile.user_collection') }}" target="main_frame">我的收藏</a></li>
				<li><a href="{{ url_for('profile.news_release') }}" target="main_frame">新闻发布</a></li>
				<li><a href="{{ url_for('profile.news_list') }}" target="main_frame">新闻列表</a></li>
			</ul>
		</div>

		<div class="user_con fr">
			<iframe src="{{ url_for('profile.base_info') }}" frameborder="0" name="main_frame" class="main_frame" id="main_frame"></iframe>
		</div>
{% endblock %}
{% block userblock %}

{% endblock %}





